/*! Copyright 2011 Baidu Inc. All Rights Reserved. */
(function() {
	function l(a) {
	var b=f[a];
	f[a]=void 0;
	return b
}
function D(a) {
	return(a=RegExp("(^| )"+a+"=([^;
	]*)(;
	|$)").exec(e.cookie))&&a[2]?decodeURIComponent(a[2]):""
}
function E(a) {
	a=a||e.domain;
	a.indexOf("www.")===0&&(a=a.substr(4));
	a.charAt(a.length-1)==="."&&(a=a.substring(0,a.length-1));
	var b="com,cn,net,org,gov,info,la,cc,co,jp,us,hk,tv,me,biz,in,be,io,tk,cm,li,ru,ws,hn,fm".split(","),b=RegExp("([a-z0-9][a-z0-9\\-]*?\\.(?:"+b.join("|")+")(?:\\.(?:cn|jp|tw|ru))?)$","i");
	return(b=a.match(b))?b[0]:a
}
function P() {
	if(m.plugins&&m.mimeTypes.length) {
	var a=m.plugins["Shockwave Flash"];
	if(a&&a.description)return a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0"
}
else if(f.ActiveXObject&&!f.opera)for(a=10;
	a>=2;
	a--)try {
	var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);
	if(b)return b.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,".")
}
catch(c) {
	}return""
}
function Q() {
	var a=e.referrer,b=a.replace(/^https?:\/\//,""),b=b.split("/")[0],b=b.split(":")[0],b=E(b),c=E(),d=D("BAIDU_CLB_REFER");
	return d&&c===b?encodeURIComponent(d):c!==b?(b=new Date,e.cookie="BAIDU_CLB_REFER="+encodeURIComponent(a)+";
	expires="+b.toGMTString()+(c?";
	domain="+encodeURIComponent(c):""),encodeURIComponent(a)):""
}
function F(a) {
	return typeof a==="number"?Math.floor(a):/^\d+$/.test(a)?+a:-1
}
function G(a,b,c) {
	a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c,!1)
}
function n(a) {
	var b= {
	},c=f.location.search;
	c.indexOf("?")===0&&(c=c.substring(1));
	for(var c=c.split("&"),d=0;
	d<
c.length;
	d++) {
	var i=c[d].split("=");
	i[0].indexOf("baidu_clb_")==0&&(b[i[0]]=i[1])
}
n=function(a) {
	return b[a]
}
;return b[a]}function h(a,b) {
	return f[a]?f[a]:f[a]=b
}
function s(a) {
	return"baidu_clb_slot_"+a
}
function x(a) {
	return"baidu_clb_slot_iframe_"+a
}
function R(a) {
	var b=a.id,c;
	a: {
	var d=a.htmlCode.split("|");
	c=d.length;
	for(var i=0;
	i<c;
	i++) {
	var r=d[i].split("=");
	if(r[0]==="cpro_template") {
	c=r[1].split("_")[1].indexOf("xuanfu")===0?!0:!1;
	break a
}
}c=!1}d=c?S:T;
	c=f[c?"BAIDU_CLB_CPROFSLOT":"BAIDU_CLB_CPROCSLOT"];
	a=g[a.id];
	c?c(b,a):(f.tempClbCproAdObj=a,f.tempClbCproAdSlotId=b,e.write('<script charset="utf-8" src="'+d+'"><\/script>'));
	g[b]._done=!0;
	j(b,!0)}function U(a) {
	a.htmlCode?(f.BAIDU_DAN_readySlotId=a.id,e.write('<script charset="utf-8" src="'+V+'"><\/script>'),g[a.id]._done=!0,j(a.id,!0)):j(a.id,!1)
}
function W(a) {
	if(!a.htmlCode&&!a.holdPlace)g[a.id]._done=!0,j(a.id,!1);
	else {
	if(a.htmlCode&&a.multimediaType)g[a.id]._done=!0,e.write(a.htmlCode);
	else {
	var b='<div id="'+s(a.id)+'">'+y(a)+"</div>";
	e.write(b)
}
j(a.id,!0)}}function H(a) {
	if(a.htmlCode)if(e.body) {
	var b=e.createElement("div"),c=b.style;
	b.id=s(a.id);
	c.width=a.width+"px";
	c.height=a.height+17+"px";
	c.overflow="hidden";
	c.zIndex=2147483647;
	a.scroll?I()?(c.position="fixed",c[a.alignLeft?"left":"right"]=a.horizontalSpace+"px",c[a.alignTop?"top":"bottom"]=a.verticalSpace+"px"):(c.position="absolute",z(a,b),f.attachEvent("onscroll",function() {
	z(a)
}
),f.attachEvent("onresize",function() {
	z(a)
}
)):(c.position="absolute",c[a.alignLeft?"left":"right"]=a.horizontalSpace+
"px",c[a.alignTop?"top":"bottom"]=a.verticalSpace+"px");
	e.body.insertBefore(b,e.body.firstChild);
	c=y(a);
	c+='<div style="height:15px;
	border:1px solid #e1e1e1;
	background:#f0f0f0;
	margin:0;
	padding:0;
	overflow:hidden;
	"><span style="float:right;
	clear:right;
	margin:2px 5px 0 0;
	width:39px;
	height:13px;
	cursor:pointer;
	background:url('+X+') no-repeat scroll 0 0;
	" onmouseover="this.style.backgroundPosition=\'0 -20px\';
	" onmouseout="this.style.backgroundPosition=\'0 0\';
	" onclick="this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);
	"></span></div>';
	b.innerHTML=c;
	j(a.id,!0)
}
else G(f,"load",function() {
	H(a)
}
);
	else g[a.id]._done=!0,j(a.id,!1)}function Y(a) {
	g[a.id]._done=!0;
	j(a.id,!!a.htmlCode);
	if(a.htmlCode) {
	var b=["height="+a.height,"width="+a.width,"top="+(a.alignTop?a.verticalSpace:k.availHeight-a.verticalSpace-a.height),"left="+(a.alignLeft?a.horizontalSpace:k.availWidth-a.horizontalSpace-a.width),"toolbar=no","menubar=no","scrollbars=no","resizble=no","location=no","status=no"],b=b.join(","),c=a.htmlCode;
	c.indexOf("<body>")<0&&(c="<!DOCTYPE html><body>"+
c);
	if(a.openOnLoad||f.addEventListener) {
	var d=f.open(t(),"clb"+ +new Date,b),i=+new Date+3E4,e=function() {
	try {
	if(d.document) {
	var b=d.document;
	b.open("text/html","replace");
	b.write(c);
	b.close();
	d.focus();
	a.stayTime>0&&setTimeout(function() {
	d&&d.close()
}
,a.stayTime*1E3)}}catch(f) {
	new Date<i?setTimeout(e,200):g[a.id]._done="PermissionDenied"
}
};
	d&&setTimeout(e,0)}else f.attachEvent("onunload",function() {
	var a=f.event;
	if(a.clientY<0&&!a.ctrlKey||a.altKey)if(a="about:blank",u()&&(a='javascript:void(function() {
	var d=document;
	d.open();
	d.domain="'+
document.domain+'";
	d.write("");
	d.close();
}
())'),a=f.open(a,"clb"+ +new Date,b))try {
	var d=a.document;
	d.open("text/html","replace");
	d.write(c);
	d.close();
	a.focus()
}
catch(i) {
	}
}
)}}function o(a) {
	var b=g[a];
	return!b?null: {
	id:a,slotType:b._stype,htmlCode:b._html,holdPlace:b._fxp,multimediaType:b._isMlt,width:b._w,height:b._h,alignLeft:b._left,alignTop:b._top,horizontalSpace:b._vs,verticalSpace:b._hs,stayTime:b._st,scroll:b._sf,openOnLoad:b._bf,done:b._done,filled:b._filled,flagRendered:b._fr!==!1
}
}function z(a,b) {
	if(b=b||e.getElementById(s(a.id))) {
	var c=b.style,d=J?e.body:e.documentElement,i=d.clientWidth,r=d.clientHeight,g=f.pageXOffset||d.scrollLeft,d=f.pageYOffset||d.scrollTop;
	c.top=a.alignTop?d+a.verticalSpace+"px":d+r-a.verticalSpace-a.height-17+"px";
	c.left=a.alignLeft?g+a.horizontalSpace+"px":g+i-a.horizontalSpace-a.width+"px"
}
}function t() {
	return u()?A.domainPolicyFileUrl||"/domain-policy.htm":"about:blank"
}
function y(a) {
	var b=a.frameId||x(a.id),c=a.frameSrc||t();
	return'<iframe id="'+b+'" src="'+
c+'" '+(a.frameSrc?"":"onload=\"BAIDU_CLB_renderFrame('"+a.id+"')\"")+'width="'+a.width+'" height="'+a.height+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginHeight="0" marginWidth="0"frameborder="0" style="border:0;
	vertical-align:bottom;
	margin:0;
	display:block;
	"></iframe>'
}
function j(a,b) {
	if(o(a).flagRendered)f.BAIDU_CLB_adRendered=b
}
function K(a,b) {
	if(a&&Z.test(a)&&b) {
	for(var b=Object.prototype.toString.call(b)=="[object Array]"?b:Array.prototype.slice.call(arguments,1),c=p[a]||[],d=b.length,i=0;
	i<d;
	i++) {
	var e=b[i];
	typeof e==="string"&&$.test(e)&&(c[c.length]=e)
}
if(c.length) {
	for(var d=p,i= {
	},e=[],f=c.length,g=0;
	g<f;
	g++) {
	var h=c[g];
	i[h]||(e[e.length]=h,i[h]=!0)
}
d[a]=e}}}function aa() {
	var a=[],b;
	for(b in p)if(v.call(p,b)) {
	var c=b+"="+p[b].join(",");
	a[a.length]=c
}
a.sort(function(a,b) {
	return a.length-b.length
}
);
	b="";
	for(var c=a.length,d=0;
	d<c;
	d++) {
	if(b.length+a[d].length>1500)break;
	b+="&"+a[d]
}
return b}function B() {
	}function C(a,b) {
	var c=["di="+(a instanceof Array?
a.join(","):a),"fn="+b,"tm=BAIDU_CLB_SETJSONADSLOT","mod_t="+ +new Date(e.lastModified),"visi_t="+ +new Date,"flash_v="+P(),"java="+(m.javaEnabled()?1:0),"screen_h="+k.height,"screen_w="+k.width,"page_h="+k.availHeight,"page_w="+k.availWidth,"color="+k.colorDepth,"asp_refer="+Q(),"asp_url="+encodeURIComponent(e.URL),"b_lang="+encodeURIComponent(m.language||m.browserLanguage),"new=1","baidu_id="+D("BAIDUID")],d=L();
	if(d&&a==d.sid) {
	var i=c.pop();
	c.push("mid="+d.mid);
	c.push("sid="+d.vc);
	c.push(i)
}
return ba+
"?"+c.join("&")+aa()
}
function M(a) {
	var b=N(a);
	if(a=o(b)) {
	g[b]._filled=!0;
	f.BAIDU_CLB_adRendered=void 0;
	if(a.multimediaType===2)b=R;
	else if(a.multimediaType===3)b=U;
	else switch(a.slotType) {
	case 0:case 3:b=W;
	break;
	case 1:b=H;
	break;
	default:b=Y
}
b(a)}}function N(a) {
	for(var b in a)if(v.call(a,b))return a=a[b],typeof g[b]!=="object"&&(g[b]=a),b;
	return""
}
function w(a) {
	if(a) {
	var b=g[a];
	if(typeof b==="object") {
	if(!b._filled) {
	b._filled=!0;
	var c= {
	};
	c[a]=b;
	M(c)
}
}else g[a]=!0,a=C(a,"BAIDU_CLB_SETJSONADSLOT"),e.write('<script charset="utf-8" src="'+
a+'"><\/script>')
}
}function L() {
	var a=n("baidu_clb_preview_sid"),b=n("baidu_clb_preview_mid"),c=n("baidu_clb_preview_vc"),d=+n("baidu_clb_preview_ts");
	return+new Date-d<=3E4? {
	sid:a,mid:b,vc:c
}
:null}function O(a,b,c) {
	b=F(b);
	c=F(c);
	if(b<0||c<0)w(a);
	else {
	f.BAIDU_CLB_adRendered=void 0;
	var d=o(a);
	d?w(a):(g[a]= {
	_w:b,_h:c,_filled:!0,_done:!0
}
,d=o(a),d.frameId="baidu_clb_slot_proxy_"+a,b=C(a,"BAIDU_CLB_SETJSONADSLOT"),d.frameSrc=ca+"#"+encodeURIComponent(b),d=y(d),e.write(d),j(a,!0))}}function q(a,b) {
	var c=
b|| {
	},d=new Image,i="log"+new Date,g=da+"?_="+ +new Date+"&type="+encodeURIComponent(a)+"&url="+encodeURIComponent(e.URL)+"&host="+encodeURIComponent(f.location.hostname),h;
	for(h in c)v.call(c,h)&&(g+="&"+encodeURIComponent(h)+"="+encodeURIComponent(c[h]));
	f[i]=d;
	d.onload=d.onerror=d.onabort=function() {
	d.onload=d.onerror=d.onabort=null;
	try {
	delete f[i]
}
catch(a) {
	f[i]=void 0
}
};
	d.src=g}var f=window,k=f.screen,m=f.navigator,e=f.document,J=e.compatMode!=="CSS1Compat",g=h("BAIDU_CLB_SLOTS_MAP" {
	}),v=Object.prototype.hasOwnProperty,ba="http://cb.baidu.com/ecom",V="http://cbjs.baidu.com/js/dn.js",S="http://cpro.baidu.com/cpro/ui/cf.js",T="http://cpro.baidu.com/cpro/ui/cc.js",X="http://drmcmm.baidu.com/js/img/close.gif",da="http://220.181.111.115/log",ca="http://cbjs.baidu.com/js/proxy.htm",I=function() {
	var a=e.createElement("div"),b=e.createElement("div"),c=!1;
	a.style.position="absolute";
	a.style.top="200px";
	b.style.position="fixed";
	b.style.top="100px";
	a.appendChild(b);
	e.body.insertBefore(a,e.body.firstChild);
	b.getBoundingClientRect&&
b.getBoundingClientRect().top!==a.getBoundingClientRect().top&&(c=!0);
	e.body.removeChild(a);
	I=function() {
	return c
}
;return c},u=function() {
	var a=e.createElement("iframe"),b=!1;
	a.src="about:blank";
	e.body.insertBefore(a,e.body.firstChild);
	try {
	b=!a.contentWindow.document
}
catch(c) {
	b=!0
}
e.body.removeChild(a);
	u=function() {
	return b
}
;return b},A=h("BAIDU_CLB_globalConfig" {
	});
	h("BAIDU_CLB_setConfig",function(a,b) {
	A[a]=b
}
);
	(function(a,b) {
	var c=l(b);
	c&&(A[a]=c)
}
)("domainPolicyFileUrl","BAIDU_CLB_domainPolicyFileUrl");
	h("BAIDU_CLB_renderFrame",function(a) {
	var b=document.getElementById(x(a)),c=o(a);
	if(u()&&b.getAttribute("src",2)!==t())b.src=t();
	else if(c&&!c.done)try {
	g[a]._done=!0;
	var d=c.htmlCode;
	d.indexOf("<body>")<0&&(d="<!DOCTYPE html><body>"+d);
	var e=b.contentWindow.document;
	e.open("text/html","replace");
	e.write(d);
	e.close();
	if(e.body)e.body.style.backgroundColor="transparent";
	c.slotType===1&&c.stayTime>0&&setTimeout(function() {
	var b=document.getElementById(s(a));
	b&&b.parentNode.removeChild(b)
}
,c.stayTime*
1E3)
}
catch(f) {
	g[a]._done="PermissionDenied"
}
});
	h("BAIDU_CLB_prepareMoveSlot",function(a) {
	if(!(a===void 0||g[a]===void 0))g[a]._done=!1
}
);
	var p=h("BAIDU_CLB_orientations" {
	}),Z=/^[0-9a-zA-Z]+$/,$=/^[0-9a-zA-Z_]+$/;
	h("BAIDU_CLB_addOrientation",K);
	(function() {
	var a=l("BAIDU_CLB_ORIENTATIONS");
	if(a)for(var b in a)v.call(a,b)&&K(b,a[b])
}
)();
	h("BAIDU_CLB_addSlot",B);
	h("BAIDU_CLB_enableAllSlots",B);
	h("BAIDU_CLB_SETHTMLSLOT",B);
	h("BAIDU_CLB_SETJSONADSLOT",M);
	h("BAIDU_CLB_ADDAD",N);
	h("BAIDU_CLB_fillSlot",w);
	h("BAIDU_CLB_singleFillSlot",w);
	h("BAIDU_CLB_preloadSlots",function(a) {
	function b(a) {
	a=C(a,"BAIDU_CLB_ADDAD");
	e.write('<script charset="utf-8" src="'+a+'"><\/script>')
}
for(var c=[],d=L(),f=arguments.length,h=0;
	h<f;
	h++) {
	var j=arguments[h];
	d&&j==d.sid||(g[j]||(c[c.length]=j,g[j]=!0),c.length>=16&&(b(c),c=[]))
}
c.length&&b(c)});
	h("BAIDU_CLB_fillSlotWithSize",O);
	(function() {
	var a=l("BAIDU_CLB_SLOT_ID"),b=l("BAIDU_CLB_SLOT_WIDTH"),c=l("BAIDU_CLB_SLOT_HEIGHT");
	O(a,b,c)
}
)();
	(function() {
	var a=l("BAIDU_CLB_JSONP_URL");
	a&&e.write('<script charset="utf-8" src="'+a+'"><\/script>')
}
)();
	(function() {
	if(!f.BAIDU_CLB_logOK) {
	f.BAIDU_CLB_logOK=!0;
	try {
	J&&q("quirks"),function() {
	var a=e.domain;
	a.indexOf("www.")===0&&(a=a.substring(4));
	a.charAt(a.length-1)==="."&&(a=a.substring(0,a.length-1));
	var c="com,cn,net,org,gov,info,la,cc,co,jp,us,hk,tv,me,biz,in,be,io,tk,cm,li,ru,ws,hn,fm".split(",");
	RegExp("([a-z0-9][a-z0-9\\-]*?\\.(?:"+c.join("|")+")(?:\\.(?:cn|jp|tw|ru))?)$","i").test(a)||q("domainNotMatch")
}
(),function() {
	function a() {
	for(var b in g) {
	var d=
b,f=g[b];
	if(typeof f!=="object")q("loadFail" {
	id:d
}
);
	else if(f._done!==!0)q("renderFail" {
	id:d,qid:f._qid,error:f._done||"NotFilled"
}
);
	else {
	var h=e.getElementById(x(d));
	if(h)try {
	var j=h.contentWindow.document.body;
	(!j||!j.firstChild)&&q("renderEmpty" {
	id:d,qid:f._qid,stype:f._stype
}
)}catch(k) {
	}
}
}}G(f,"load",function() {
	setTimeout(a,0)
}
)}()}catch(a) {
	}
}
})()})();